package com.lnj.bean.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class CartDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long cartId ;// '购物车ID',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId ;// '用户ID',
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId ;// '商品ID',
    private Integer  quantity ;// '数量',

    private String productName;
    private String userName;

    private BigDecimal price; // 当前价格
    private BigDecimal originalPrice; // 原价
    private String mainImage; // 主图URL
}